def speeding(speeds, limit):
    beyond_speeds = []
    for speed in speeds:
        if speed > limit:
            beyond_speeds.append(speed - limit)
    if not beyond_speeds:
        return [0, 0]
    return [len(beyond_speeds), sum(beyond_speeds)/len(beyond_speeds)]


if __name__ == '__main__':
    print(speeding([50, 60, 55], 60))